CP = cp

CFLAGS = -std=c99 -pedantic -Wall -Wextra -g

LIBPL = libpl.a
LIBPL_PREFIX = /usr/local/lib
HEADER_PREFIX = /usr/local/include
LIBPL_PATH = $(LIBPL_PREFIX)/$(LIBPL)

all: $(LIBPL)

$(LIBPL): pipeline.o
	$(AR) rcs $(LIBPL) pipeline.o

clean:
	$(RM) pipeline.o $(LIBPL)

install:
	$(CP) ./$(LIBPL) $(LIBPL_PREFIX)
	$(CP) ./pipeline.h $(HEADER_PREFIX)

uninstall:
	$(RM) $(LIBPL_PATH)
	$(RM) $(HEADER_PREFIX)/pipeline.h

.PHONY: clean
.PHONY: install
.PHONY: uninstall

